{include file="header.html"}
<div id="page-store-index">
	{include file="store.slides.html"}
	<div class="w-shop clearfix">
        <div class="col-sub w210">
        	{include file="left.html"}
        </div>
        <div class="col-main float-right w980">
        	<div class="new-goods goods-list-shop mb10 border">
            	<div class="title clearfix border-b">
                	<h3 class="float-left">{$lang.new_goods}</h3>
                    <a class="float-right" href="{url route='store/search' id=$store.store_id order='add_time|desc'}">{$lang.more_new_goods}</a>
                </div>
                <ul class="content  clearfix">
                    <!--{foreach from=$store.newGoods item=item name=fe_item}-->
                    <li class="float-left">
                    	<dl>
                            <dt class="border"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank"><img class="lazyload" initial-url="{$item.default_image|url_format}"  /></a></dt>
                            <dd class="desc mt10"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank">{$item.goods_name|escape|truncate:32}</a></dd>
                            <dd class="price mt10 w-full clearfix"><strong>{$item.price|price_format}</strong><em><a href="{url route='goods/salelog' id=$item.goods_id}" target="_blank">售出{$item.sales}</a>&nbsp;|&nbsp;<a href="{url route='goods/comment' id=$item.goods_id}" target="_blank">评价{$item.comments}</a></em></dd>
                         </dl>
                   </li>
                   <!--{/foreach}-->
                </ul>
            </div>
            
            <!--{if $store.recommendedGoods}-->
        	<div class="new-goods goods-list-shop mb10 border">
            	<div class="title clearfix border-b">
                	<h3 class="float-left">{$lang.recommended_goods}</h3>
                </div>
                <ul class="content  clearfix">
                    <!--{foreach from=$store.recommendedGoods item=item name=fe_item}-->
                    <li class="float-left">
                    	<dl>
                            <dt class="border"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank"><img class="lazyload" initial-url="{$item.default_image|url_format}"  /></a></dt>
                            <dd class="desc mt10"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank">{$item.goods_name|escape|truncate:32}</a></dd>
                            <dd class="price mt10 w-full clearfix"><strong>{$item.price|price_format}</strong><em><a href="{url route='goods/salelog' id=$item.goods_id}" target="_blank">售出{$item.sales}</a>&nbsp;|&nbsp;<a href="{url route='goods/comment' id=$item.goods_id}" target="_blank">评价{$item.comments}</a></em></dd>
                         </dl>
                   </li>
                   <!--{/foreach}-->
                </ul>
            </div>
            <!--{/if}-->
            
            <!--{if $store.saleGoods}-->
        	<div class="new-goods goods-list-shop mb10 border">
            	<div class="title clearfix border-b">
                	<h3 class="float-left">{$lang.hot_sale_goods}</h3>
                    <a class="float-right" href="{url route='store/search' id=$store.store_id order='sales|desc'}">{$lang.more_hotsale_goods}</a>
                </div>
                <ul class="content  clearfix">
                    <!--{foreach from=$store.saleGoods item=item name=fe_item}-->
                    <li class="float-left">
                    	<dl>
                            <dt class="border"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank"><img class="lazyload" initial-url="{$item.default_image|url_format}"  /></a></dt>
                            <dd class="desc mt10"><a href="{url route='goods/index' id=$item.goods_id}" target="_blank">{$item.goods_name|escape|truncate:32}</a></dd>
                            <dd class="price mt10 w-full clearfix"><strong>{$item.price|price_format}</strong><em><a href="{url route='goods/salelog' id=$item.goods_id}" target="_blank">售出{$item.sales}</a>&nbsp;|&nbsp;<a href="{url route='goods/comment' id=$item.goods_id}" target="_blank">评价{$item.comments}</a></em></dd>
                         </dl>
                   </li>
                   <!--{/foreach}-->
                </ul>
            </div>
            <!--{/if}-->
        </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
	$.each($('.countdown'),function(){
		var theDaysBox  = $(this).find('.NumDays');
		var theHoursBox = $(this).find('.NumHours');
		var theMinsBox  = $(this).find('.NumMins');
		var theSecsBox  = $(this).find('.NumSeconds');	
		countdown(theDaysBox, theHoursBox, theMinsBox, theSecsBox)
	});
});
</script>
{include file="footer.html"}
